﻿using System.Linq.Expressions;
using System.Reflection;

namespace PropertyExpression.ControllableQuery
{
    public static class InternalUtil
    {
        public static FieldInfo GetFieldInfo(this LambdaExpression expression)
        {
            return (FieldInfo)((MemberExpression)expression.Body).Member;
        }
    }
}
